<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>

<%
	request.setAttribute("title","任务详情");
	request.setAttribute("modelConfigPath", "studentManager");
%>

<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>
<%@ include file="/WEB-INF/views/shared/css/limitless/default/animate.jsp"%>
<style type="text/css">
.form-detailed .form-group{
	margin-bottom: 6px !important;
	padding-bottom: 6px !important;
}

.upload-view-delete-file:hover{
	background-color: #397B93 !important;
}
.upload-view-file-item:hover{
	background-color: #ddd;
}
</style>

<t:panel cssClass="panel-flat form-detailed form-xs" customBody="true" customHead="true">
	<div class="detailed-navbar-content panel-body">
		<t:form commandName="weekLog" action="/admin/studentManager/weekLog/save" method="post" cssClass="form-horizontal">
			<div class="hide">
				<t:hidden path="id" cssClass="businessId"/>
			</div>
			<t:formgroup>
				<div class="col-sm-8">
					<t:label path="name" cssClass="col-sm-2" />
					<t:input path="name" colClass="col-sm-10" />
				</div>
			</t:formgroup>
			<t:formgroup>
				<div class="col-sm-4">
					<t:label path="projectId" cssClass="col-sm-4" />
					<t:select2 path="projectId" colClass="col-sm-8" />
				</div>
				<div class="col-sm-4">
					<t:label path="teacherId" cssClass="col-sm-4" />
					<t:select2 path="teacherId" colClass="col-sm-8" />
				</div>
				<div class="col-sm-4">
					<t:label path="employeeId" cssClass="col-sm-4" />
					<t:select2 path="employeeId" colClass="col-sm-8" />
				</div>
			</t:formgroup>
			<t:formgroup>
				<div class="col-sm-4">
					<t:label path="startDate" cssClass="col-sm-4" />
					<t:date path="startDate" data-min="[]" colClass="col-sm-8" />
				</div>
				<div class="col-sm-4">
					<t:label path="finishDate" cssClass="col-sm-4" />
					<t:date path="finishDate" placeholder="-:-:-" disabled="true" colClass="col-sm-8" />
				</div>
			</t:formgroup>
			<t:formgroup>
				<div style="width:11.5%;float:left;">
					<t:label path="content" cssClass="col-sm-12" />
				</div>
				<div style="width:88.5%;float:left;">
					<t:ueditor path="content" style="height:150px;" colClass="col-sm-12" />
				</div>
			</t:formgroup>
		</t:form>
	</div>
	<t:panelFoot headingBtnCssClass="heading-btn pull-right-important">
		<t:button icon="icon-floppy-disk" laddaType="progress" onclick="saveData()" cssClass="btn-info testBtn" csize="sm">保存</t:button>
	</t:panelFoot>
</t:panel>

<script type="text/javascript">

	function saveData(lBtn){
		if (!$("form:first").valid()){
			return;
		}
		lBtn.start();
		$("form:first").submit();
	}

</script>
<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formpickers.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formbuttons.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/forminputs.jsp"%>
<%@ include file="/WEB-INF/views/shared/scripts/editor/ueditor.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentFooter.jsp"%>
